Platform Explorer / Nuxeo Platform 2023.20

Extension point activeFileSystemItemFactories

Documentation

This extension point lets you contribute the active FileSystemItem factories.

Example of the default contribution:

    <extension point="activeFileSystemItemFactories" target="org.nuxeo.drive.service.FileSystemItemAdapterService">
        <activeTopLevelFolderItemFactory>org.nuxeo.drive.service.impl.DefaultTopLevelFolderItemFactory
          </activeTopLevelFolderItemFactory>
        <activeFileSystemItemFactories>
            <factories>
                <factory>defaultSyncRootFolderItemFactory</factory>
                <factory>defaultFileSystemItemFactory</factory>
            </factories>
        </activeFileSystemItemFactories>
    </extension>

Example of a custom contribution:

    <extension point="activeFileSystemItemFactories" target="org.nuxeo.drive.service.FileSystemItemAdapterService">
        <activeTopLevelFolderItemFactory>org.nuxeo.drive.hierarchy.userworkspace.factory.UserWorkspaceTopLevelFactory
          </activeTopLevelFolderItemFactory>
        <activeFileSystemItemFactories merge="true">
            <factories>
                <factory enabled="false">defaultSyncRootFolderItemFactory</factory>
                <factory>userWorkspaceSyncRootParentFactory</factory>
                <factory>userWorkspaceSyncRootFactory</factory>
            </factories>
        </activeFileSystemItemFactories>
    </extension>

Contribution Descriptors

  • Class: org.nuxeo.drive.service.impl.ActiveFileSystemItemFactoriesDescriptor
  • Class: org.nuxeo.drive.service.impl.ActiveTopLevelFolderItemFactoryDescriptor

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-drive-core-2023.20.15.jar /OSGI-INF/nuxeodrive-adapter-contrib.xml
    <extension point="activeFileSystemItemFactories" target="org.nuxeo.drive.service.FileSystemItemAdapterService">
    
        <activeTopLevelFolderItemFactory>org.nuxeo.drive.service.impl.DefaultTopLevelFolderItemFactory
        </activeTopLevelFolderItemFactory>
    
        <activeFileSystemItemFactories>
          <factories>
            <factory>collectionSyncRootFolderItemFactory</factory>
            <factory>defaultSyncRootFolderItemFactory</factory>
            <factory>defaultFileSystemItemFactory</factory>
          </factories>
        </activeFileSystemItemFactories>
    
      </extension>